package fourzerofour.guoshixu.day01;

import java.util.Scanner;

public class Question11 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //最大数
        int max = 0;
        //用户输入的数字
        int num;
        for(int i=0;i<5;i++){
            System.out.println("请输入第" + (i+1) + "个数字: ");
            num = scanner.nextInt();
            if(num>max){
                max = num;
            }
        }

        System.out.println("最大数为" + max);
    }
}
